﻿@using Library
@inherits WebViewPage<DateTime?>
@{
    var dateFormat = NOWCulture.CurrentCultureInfo.DateTimeFormat.ShortDatePattern;
}
<div class="input-group date">
    @(Model.HasValue ? Html.TextBox("", Model.Value.ToString(dateFormat), new { @class = "form-control", @data_date_format = dateFormat.ToUpper() }) : Html.TextBoxFor(m => m, new { @class = "form-control", @data_date_format = dateFormat.ToUpper() }))
    <span class="input-group-addon">
        <span class="glyphicon glyphicon-calendar"></span>
    </span>
</div>